import 'package:equatable/equatable.dart';
import 'package:backend.purchases/domain/entities/app_store_api/app_store_api_transaction.dart';

const kAppStoreApiTransactionIdKey = 'transactionId';
const kAppStoreApiTransactionOriginalTransactionIdKey = 'originalTransactionId';
const kAppStoreApiTransactionPurchaseItemSkuKey = 'productId';
const kAppStoreApiTransactionOfferTypeCodeKey = 'offerType';
const kAppStoreApiTransactionOwnershipTypeKey = 'inAppOwnershipType';
const kAppStoreApiTransactionRevocationTimeKey = 'revocationDate';
const kAppStoreApiTransactionRevocationReasonCodeKey = 'revocationReason';
const kAppStoreApiTransactionTimeKey = 'purchaseDate';

abstract class AppStoreApiTransactionDto extends Equatable {
  const AppStoreApiTransactionDto();

  AppStoreApiTransaction toEntity();
}
